/*** Eclipse Class Decompiler plugin, copyright (c) 2016 Chen Chao (cnfree2000@hotmail.com) ***/
package entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "examquestion", catalog = "test")
@XStreamAlias("examquestion")
public class Examquestion implements Serializable {
	private Long id;
	private Long paperid;
	private String title;
	private String choice1;
	private String choice2;
	private String choice3;
	private String choice4;
	private String choice5;
	private String answer;
	private String description;

	public Examquestion() {
	}

	public Examquestion(Long paperid, String title, String choice1,
			String choice2, String choice3, String choice4, String choice5) {
		this.paperid = paperid;
		this.title = title;
		this.choice1 = choice1;
		this.choice2 = choice2;
		this.choice3 = choice3;
		this.choice4 = choice4;
		this.choice5 = choice5;
	}

	public String toString() {
		return "[" + this.title + "," + this.choice1 + "," + this.choice2 + "]";
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "paperid")
	public Long getPaperid() {
		return this.paperid;
	}

	public void setPaperid(Long paperid) {
		this.paperid = paperid;
	}

	@Column(name = "title", length = 200)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "choice1", length = 100)
	public String getChoice1() {
		return this.choice1;
	}

	public void setChoice1(String choice1) {
		this.choice1 = choice1;
	}

	@Column(name = "choice2", length = 100)
	public String getChoice2() {
		return this.choice2;
	}

	public void setChoice2(String choice2) {
		this.choice2 = choice2;
	}

	@Column(name = "choice3", length = 100)
	public String getChoice3() {
		return this.choice3;
	}

	public void setChoice3(String choice3) {
		this.choice3 = choice3;
	}

	@Column(name = "choice4", length = 100)
	public String getChoice4() {
		return this.choice4;
	}

	public void setChoice4(String choice4) {
		this.choice4 = choice4;
	}

	@Column(name = "choice5", length = 100)
	public String getChoice5() {
		return this.choice5;
	}

	public void setChoice5(String choice5) {
		this.choice5 = choice5;
	}

	@Column(name = "answer", length = 10)
	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	@Column(name = "description", length = 200)
	public String getdescription() {
		return this.description;
	}

	public void setdescription(String description) {
		this.description = description;
	}
}